package com.allwees.bs.module.oms.service.impl;

import com.allwees.bs.module.oms.entity.OmsOrderItem;
import com.allwees.bs.module.oms.entity.Order;
import com.allwees.bs.module.oms.entity.OrderItem;
import com.allwees.bs.module.oms.req.RetailerCancelShippedReq;
import com.allwees.bs.module.oms.service.RetailerOmsOrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Set;


/**
 * 商户模式 oms order
 *
 * @author mouhaining
 * @since 2020-02-28 15:58
 */
@Service
public class RetailerOmsOrderServiceImpl extends BaseOmsOrderServiceImpl implements RetailerOmsOrderService {

    @Override
    @Transactional
    public void doShipped(Set<String> orderUuids) {
        orderUuids.forEach(this::_doShipped);
    }

    @Override
    @Transactional
    public void doCancelShipped(RetailerCancelShippedReq req, OrderItem orderItem, Order order, OmsOrderItem omsOrderItem) {
        _doCancelShipped(req,orderItem,order,omsOrderItem);
    }
}
